﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using INSTA.BankApplication.DAL;

namespace INSTA.BankApplication.DAL.Tests
{
    [Table(MockConstants.TABLE_NAME)]
    public class MockPerson : DataMapper
    {

        public MockPerson()
        {}

        public MockPerson(int id) : base(id)
        {}

        [Field(MockConstants.FIELDNAME_NAME)]
        public string Name { get; set; }

        [Field(MockConstants.FIELDNAME_FIRST_NAME)]
        public string FirstName { get; set; }

        [Field(MockConstants.FIELDNAME_YEAR_OF_BIRTH)]
        public int YearOfBirth { get; set; }


        /// <summary>
        /// Gets the test person with allways the same properties.
        /// </summary>
        /// <returns>MockPerson.</returns>
        public static MockPerson GetTestPerson()
        {
            return new MockPerson()
            {
                Name            = MockConstants.DUMMY_NAME,
                FirstName       = MockConstants.DUMMY_FIRST_NAME,
                YearOfBirth     = MockConstants.DUMMY_YEAR_OF_BIRTH
            };
        }

    }
}
